<template>
    <div style="widht:100% ; padding:1%">
        <el-space :fill="true" wrap style="width:100%">
            <el-card class="box-card" v-for="item in allItData" v-bind:key="item.ryD_UserId">
                <template #header>
                    <div class="card-header">
                        <span>人员：{{item.ryD_UserName}}</span>
                    </div>
                </template>

                <van-cell title="正在处理单数" :value="item.num" />
                <van-cell title="已处理单数" :value="item.sum-item.num" />
                <van-cell title="总单数" :value="item.sum" />
            </el-card>
        </el-space>
    </div>
</template>
  
<script setup>

import axios from '@/utils/axios';
import { inject, ref } from 'vue';


let RYD_UserId = inject('RYD_UserId');
let RYD_Company = '';

let allItData = ref();
axios({
    method: 'get',
    url: '/api/GetCompany?RYD_UserId=' + RYD_UserId
}).then(res => {
    RYD_Company = res;
    axios({
        method: 'get',
        url: '/api/ALLIT?RYD_Company=' + RYD_Company,
    }).then(resAllItData => {
        allItData.value = resAllItData;
    })
})
</script>
  

<style scoped>

</style>